<template>
	<view class="all">
		<view class="us">
			<view class="about" @click="tofix()">
				<view class="left">
					修改支付密码
				</view>
				<view class="right iconfont">
					&#xe60d;
				</view>
			</view>
			<view class="version" @click="toforget()">
				<view class="left">
					忘记支付密码
				</view>
				<view class="right iconfont">
					&#xe60d;
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				token:'',
				pay_pwd:''
			};
		},
		onShow() {
			try {
				const value = uni.getStorageSync('user');
				if (value) {
					this.token = value.api_token
					this.pay_pwd=value.pay_password
				}
			} catch (e) {
				// error
			}
			if(this.pay_pwd==''){
				uni.navigateTo({
					url:'/pages/person/settings/phoneVerify'
				})
			}
		},
		onLoad(){
			
		},
		methods:{
			tofix(){
				uni.navigateTo({
					url:'/pages/person/settings/paySetting_fix'
				})
			},
			toforget(){
				uni.navigateTo({
					url:'/pages/person/settings/phoneVerify'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.all {
		background-color: #f6f6f6;
		padding-top: 5px;

		.us {
			background-color: #ffffff;
			.about,
			.version {
				padding: 0 10px;
				font-size: 16px;
				height: 55px;
				line-height: 55px;
				font-weight: Medium;
				display: flex;
				justify-content: space-between;
				border-bottom: 0.5px #f6f6f6 solid;
			}
		}
	}
</style>